module.exports = {
    apps : [{
      name      : 'API',
      script    : 'server.js',
      cwd:"./",
      log_date_format:"YYYY-MM-DD HH:mm:ss",
      out_file:"./logs/out-0.log",
      error_file:"./logs/err-0.log",
      watch:false,
      //exec_interpreter:"babel-node",
      exec_mode:"fork",
      env: {
        COMMON_VARIABLE: 'true'
      },
      env_production : {
        NODE_ENV: 'production'
      }
    },
  ],

    deploy : {
      production : {
        key:" ~/.ssh/id_rsa",
        user : 'Administrator',
        host : ['106.13.233.166'],
        ref  : 'origin/master',
        repo : 'git@gitee.com:huayumin/saas.git',
        ssh_options: "StrictHostKeyChecking=no",
        path : 'c:/www',
        'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production'
      },
      development : {
        key:" ~/.ssh/id_rsa",
        user : 'luchaohua',
        host : ['localhost'],
        ref  : 'origin/master',
        repo : 'git@gitee.com:huayumin/saas.git',
        ssh_options: "StrictHostKeyChecking=no",
        path : 'E:\www',
        'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production'
      }
    }
  };
  